package com.pointlion.sys.mobile.common;

import java.util.List;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import com.pointlion.sys.mvc.notice.NoticeService;
import com.pointlion.sys.tool.DateUtil;

/***
 * 手机端通知公告调用服务
 * @author Administrator
 *
 */
public class MobileService extends NoticeService{
	public static final MobileService me = new MobileService();
	
	/***
	 * 获取内容列表
	 * @param type
	 * @return
	 */
	public List<Record> getContentList(String type){
		return Db.find("select * from cms_content t where t.type='"+type+"' and t.if_publish='1'");
	}
	
	
	/***
	 * 获取内容
	 * @param type
	 * @return
	 */
	public Record getContent(String id){
		return Db.findFirst("select * from cms_content t where t.id='"+id+"'");
	}
}
